package com.itcncp.wechat.app.dao.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class UserTripJnlExample implements Serializable {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private static final long serialVersionUID = 1L;

    public UserTripJnlExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria implements Serializable {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andUserIdIsNull() {
            addCriterion("user_id is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(Long value) {
            addCriterion("user_id =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(Long value) {
            addCriterion("user_id <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(Long value) {
            addCriterion("user_id >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(Long value) {
            addCriterion("user_id >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(Long value) {
            addCriterion("user_id <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(Long value) {
            addCriterion("user_id <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<Long> values) {
            addCriterion("user_id in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<Long> values) {
            addCriterion("user_id not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(Long value1, Long value2) {
            addCriterion("user_id between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(Long value1, Long value2) {
            addCriterion("user_id not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andTransNoIsNull() {
            addCriterion("trans_no is null");
            return (Criteria) this;
        }

        public Criteria andTransNoIsNotNull() {
            addCriterion("trans_no is not null");
            return (Criteria) this;
        }

        public Criteria andTransNoEqualTo(String value) {
            addCriterion("trans_no =", value, "transNo");
            return (Criteria) this;
        }

        public Criteria andTransNoNotEqualTo(String value) {
            addCriterion("trans_no <>", value, "transNo");
            return (Criteria) this;
        }

        public Criteria andTransNoGreaterThan(String value) {
            addCriterion("trans_no >", value, "transNo");
            return (Criteria) this;
        }

        public Criteria andTransNoGreaterThanOrEqualTo(String value) {
            addCriterion("trans_no >=", value, "transNo");
            return (Criteria) this;
        }

        public Criteria andTransNoLessThan(String value) {
            addCriterion("trans_no <", value, "transNo");
            return (Criteria) this;
        }

        public Criteria andTransNoLessThanOrEqualTo(String value) {
            addCriterion("trans_no <=", value, "transNo");
            return (Criteria) this;
        }

        public Criteria andTransNoLike(String value) {
            addCriterion("trans_no like", value, "transNo");
            return (Criteria) this;
        }

        public Criteria andTransNoNotLike(String value) {
            addCriterion("trans_no not like", value, "transNo");
            return (Criteria) this;
        }

        public Criteria andTransNoIn(List<String> values) {
            addCriterion("trans_no in", values, "transNo");
            return (Criteria) this;
        }

        public Criteria andTransNoNotIn(List<String> values) {
            addCriterion("trans_no not in", values, "transNo");
            return (Criteria) this;
        }

        public Criteria andTransNoBetween(String value1, String value2) {
            addCriterion("trans_no between", value1, value2, "transNo");
            return (Criteria) this;
        }

        public Criteria andTransNoNotBetween(String value1, String value2) {
            addCriterion("trans_no not between", value1, value2, "transNo");
            return (Criteria) this;
        }

        public Criteria andTollFareIsNull() {
            addCriterion("toll_fare is null");
            return (Criteria) this;
        }

        public Criteria andTollFareIsNotNull() {
            addCriterion("toll_fare is not null");
            return (Criteria) this;
        }

        public Criteria andTollFareEqualTo(BigDecimal value) {
            addCriterion("toll_fare =", value, "tollFare");
            return (Criteria) this;
        }

        public Criteria andTollFareNotEqualTo(BigDecimal value) {
            addCriterion("toll_fare <>", value, "tollFare");
            return (Criteria) this;
        }

        public Criteria andTollFareGreaterThan(BigDecimal value) {
            addCriterion("toll_fare >", value, "tollFare");
            return (Criteria) this;
        }

        public Criteria andTollFareGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("toll_fare >=", value, "tollFare");
            return (Criteria) this;
        }

        public Criteria andTollFareLessThan(BigDecimal value) {
            addCriterion("toll_fare <", value, "tollFare");
            return (Criteria) this;
        }

        public Criteria andTollFareLessThanOrEqualTo(BigDecimal value) {
            addCriterion("toll_fare <=", value, "tollFare");
            return (Criteria) this;
        }

        public Criteria andTollFareIn(List<BigDecimal> values) {
            addCriterion("toll_fare in", values, "tollFare");
            return (Criteria) this;
        }

        public Criteria andTollFareNotIn(List<BigDecimal> values) {
            addCriterion("toll_fare not in", values, "tollFare");
            return (Criteria) this;
        }

        public Criteria andTollFareBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("toll_fare between", value1, value2, "tollFare");
            return (Criteria) this;
        }

        public Criteria andTollFareNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("toll_fare not between", value1, value2, "tollFare");
            return (Criteria) this;
        }

        public Criteria andActFareIsNull() {
            addCriterion("act_fare is null");
            return (Criteria) this;
        }

        public Criteria andActFareIsNotNull() {
            addCriterion("act_fare is not null");
            return (Criteria) this;
        }

        public Criteria andActFareEqualTo(BigDecimal value) {
            addCriterion("act_fare =", value, "actFare");
            return (Criteria) this;
        }

        public Criteria andActFareNotEqualTo(BigDecimal value) {
            addCriterion("act_fare <>", value, "actFare");
            return (Criteria) this;
        }

        public Criteria andActFareGreaterThan(BigDecimal value) {
            addCriterion("act_fare >", value, "actFare");
            return (Criteria) this;
        }

        public Criteria andActFareGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("act_fare >=", value, "actFare");
            return (Criteria) this;
        }

        public Criteria andActFareLessThan(BigDecimal value) {
            addCriterion("act_fare <", value, "actFare");
            return (Criteria) this;
        }

        public Criteria andActFareLessThanOrEqualTo(BigDecimal value) {
            addCriterion("act_fare <=", value, "actFare");
            return (Criteria) this;
        }

        public Criteria andActFareIn(List<BigDecimal> values) {
            addCriterion("act_fare in", values, "actFare");
            return (Criteria) this;
        }

        public Criteria andActFareNotIn(List<BigDecimal> values) {
            addCriterion("act_fare not in", values, "actFare");
            return (Criteria) this;
        }

        public Criteria andActFareBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("act_fare between", value1, value2, "actFare");
            return (Criteria) this;
        }

        public Criteria andActFareNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("act_fare not between", value1, value2, "actFare");
            return (Criteria) this;
        }

        public Criteria andTollTimeIsNull() {
            addCriterion("toll_time is null");
            return (Criteria) this;
        }

        public Criteria andTollTimeIsNotNull() {
            addCriterion("toll_time is not null");
            return (Criteria) this;
        }

        public Criteria andTollTimeEqualTo(Date value) {
            addCriterionForJDBCDate("toll_time =", value, "tollTime");
            return (Criteria) this;
        }

        public Criteria andTollTimeNotEqualTo(Date value) {
            addCriterionForJDBCDate("toll_time <>", value, "tollTime");
            return (Criteria) this;
        }

        public Criteria andTollTimeGreaterThan(Date value) {
            addCriterionForJDBCDate("toll_time >", value, "tollTime");
            return (Criteria) this;
        }

        public Criteria andTollTimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("toll_time >=", value, "tollTime");
            return (Criteria) this;
        }

        public Criteria andTollTimeLessThan(Date value) {
            addCriterionForJDBCDate("toll_time <", value, "tollTime");
            return (Criteria) this;
        }

        public Criteria andTollTimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("toll_time <=", value, "tollTime");
            return (Criteria) this;
        }

        public Criteria andTollTimeIn(List<Date> values) {
            addCriterionForJDBCDate("toll_time in", values, "tollTime");
            return (Criteria) this;
        }

        public Criteria andTollTimeNotIn(List<Date> values) {
            addCriterionForJDBCDate("toll_time not in", values, "tollTime");
            return (Criteria) this;
        }

        public Criteria andTollTimeBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("toll_time between", value1, value2, "tollTime");
            return (Criteria) this;
        }

        public Criteria andTollTimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("toll_time not between", value1, value2, "tollTime");
            return (Criteria) this;
        }

        public Criteria andILaneIdIsNull() {
            addCriterion("i_lane_id is null");
            return (Criteria) this;
        }

        public Criteria andILaneIdIsNotNull() {
            addCriterion("i_lane_id is not null");
            return (Criteria) this;
        }

        public Criteria andILaneIdEqualTo(String value) {
            addCriterion("i_lane_id =", value, "iLaneId");
            return (Criteria) this;
        }

        public Criteria andILaneIdNotEqualTo(String value) {
            addCriterion("i_lane_id <>", value, "iLaneId");
            return (Criteria) this;
        }

        public Criteria andILaneIdGreaterThan(String value) {
            addCriterion("i_lane_id >", value, "iLaneId");
            return (Criteria) this;
        }

        public Criteria andILaneIdGreaterThanOrEqualTo(String value) {
            addCriterion("i_lane_id >=", value, "iLaneId");
            return (Criteria) this;
        }

        public Criteria andILaneIdLessThan(String value) {
            addCriterion("i_lane_id <", value, "iLaneId");
            return (Criteria) this;
        }

        public Criteria andILaneIdLessThanOrEqualTo(String value) {
            addCriterion("i_lane_id <=", value, "iLaneId");
            return (Criteria) this;
        }

        public Criteria andILaneIdLike(String value) {
            addCriterion("i_lane_id like", value, "iLaneId");
            return (Criteria) this;
        }

        public Criteria andILaneIdNotLike(String value) {
            addCriterion("i_lane_id not like", value, "iLaneId");
            return (Criteria) this;
        }

        public Criteria andILaneIdIn(List<String> values) {
            addCriterion("i_lane_id in", values, "iLaneId");
            return (Criteria) this;
        }

        public Criteria andILaneIdNotIn(List<String> values) {
            addCriterion("i_lane_id not in", values, "iLaneId");
            return (Criteria) this;
        }

        public Criteria andILaneIdBetween(String value1, String value2) {
            addCriterion("i_lane_id between", value1, value2, "iLaneId");
            return (Criteria) this;
        }

        public Criteria andILaneIdNotBetween(String value1, String value2) {
            addCriterion("i_lane_id not between", value1, value2, "iLaneId");
            return (Criteria) this;
        }

        public Criteria andELaneIdIsNull() {
            addCriterion("e_lane_id is null");
            return (Criteria) this;
        }

        public Criteria andELaneIdIsNotNull() {
            addCriterion("e_lane_id is not null");
            return (Criteria) this;
        }

        public Criteria andELaneIdEqualTo(String value) {
            addCriterion("e_lane_id =", value, "eLaneId");
            return (Criteria) this;
        }

        public Criteria andELaneIdNotEqualTo(String value) {
            addCriterion("e_lane_id <>", value, "eLaneId");
            return (Criteria) this;
        }

        public Criteria andELaneIdGreaterThan(String value) {
            addCriterion("e_lane_id >", value, "eLaneId");
            return (Criteria) this;
        }

        public Criteria andELaneIdGreaterThanOrEqualTo(String value) {
            addCriterion("e_lane_id >=", value, "eLaneId");
            return (Criteria) this;
        }

        public Criteria andELaneIdLessThan(String value) {
            addCriterion("e_lane_id <", value, "eLaneId");
            return (Criteria) this;
        }

        public Criteria andELaneIdLessThanOrEqualTo(String value) {
            addCriterion("e_lane_id <=", value, "eLaneId");
            return (Criteria) this;
        }

        public Criteria andELaneIdLike(String value) {
            addCriterion("e_lane_id like", value, "eLaneId");
            return (Criteria) this;
        }

        public Criteria andELaneIdNotLike(String value) {
            addCriterion("e_lane_id not like", value, "eLaneId");
            return (Criteria) this;
        }

        public Criteria andELaneIdIn(List<String> values) {
            addCriterion("e_lane_id in", values, "eLaneId");
            return (Criteria) this;
        }

        public Criteria andELaneIdNotIn(List<String> values) {
            addCriterion("e_lane_id not in", values, "eLaneId");
            return (Criteria) this;
        }

        public Criteria andELaneIdBetween(String value1, String value2) {
            addCriterion("e_lane_id between", value1, value2, "eLaneId");
            return (Criteria) this;
        }

        public Criteria andELaneIdNotBetween(String value1, String value2) {
            addCriterion("e_lane_id not between", value1, value2, "eLaneId");
            return (Criteria) this;
        }

        public Criteria andPayIdIsNull() {
            addCriterion("pay_id is null");
            return (Criteria) this;
        }

        public Criteria andPayIdIsNotNull() {
            addCriterion("pay_id is not null");
            return (Criteria) this;
        }

        public Criteria andPayIdEqualTo(Byte value) {
            addCriterion("pay_id =", value, "payId");
            return (Criteria) this;
        }

        public Criteria andPayIdNotEqualTo(Byte value) {
            addCriterion("pay_id <>", value, "payId");
            return (Criteria) this;
        }

        public Criteria andPayIdGreaterThan(Byte value) {
            addCriterion("pay_id >", value, "payId");
            return (Criteria) this;
        }

        public Criteria andPayIdGreaterThanOrEqualTo(Byte value) {
            addCriterion("pay_id >=", value, "payId");
            return (Criteria) this;
        }

        public Criteria andPayIdLessThan(Byte value) {
            addCriterion("pay_id <", value, "payId");
            return (Criteria) this;
        }

        public Criteria andPayIdLessThanOrEqualTo(Byte value) {
            addCriterion("pay_id <=", value, "payId");
            return (Criteria) this;
        }

        public Criteria andPayIdIn(List<Byte> values) {
            addCriterion("pay_id in", values, "payId");
            return (Criteria) this;
        }

        public Criteria andPayIdNotIn(List<Byte> values) {
            addCriterion("pay_id not in", values, "payId");
            return (Criteria) this;
        }

        public Criteria andPayIdBetween(Byte value1, Byte value2) {
            addCriterion("pay_id between", value1, value2, "payId");
            return (Criteria) this;
        }

        public Criteria andPayIdNotBetween(Byte value1, Byte value2) {
            addCriterion("pay_id not between", value1, value2, "payId");
            return (Criteria) this;
        }

        public Criteria andInvoiceStateIsNull() {
            addCriterion("invoice_state is null");
            return (Criteria) this;
        }

        public Criteria andInvoiceStateIsNotNull() {
            addCriterion("invoice_state is not null");
            return (Criteria) this;
        }

        public Criteria andInvoiceStateEqualTo(Byte value) {
            addCriterion("invoice_state =", value, "invoiceState");
            return (Criteria) this;
        }

        public Criteria andInvoiceStateNotEqualTo(Byte value) {
            addCriterion("invoice_state <>", value, "invoiceState");
            return (Criteria) this;
        }

        public Criteria andInvoiceStateGreaterThan(Byte value) {
            addCriterion("invoice_state >", value, "invoiceState");
            return (Criteria) this;
        }

        public Criteria andInvoiceStateGreaterThanOrEqualTo(Byte value) {
            addCriterion("invoice_state >=", value, "invoiceState");
            return (Criteria) this;
        }

        public Criteria andInvoiceStateLessThan(Byte value) {
            addCriterion("invoice_state <", value, "invoiceState");
            return (Criteria) this;
        }

        public Criteria andInvoiceStateLessThanOrEqualTo(Byte value) {
            addCriterion("invoice_state <=", value, "invoiceState");
            return (Criteria) this;
        }

        public Criteria andInvoiceStateIn(List<Byte> values) {
            addCriterion("invoice_state in", values, "invoiceState");
            return (Criteria) this;
        }

        public Criteria andInvoiceStateNotIn(List<Byte> values) {
            addCriterion("invoice_state not in", values, "invoiceState");
            return (Criteria) this;
        }

        public Criteria andInvoiceStateBetween(Byte value1, Byte value2) {
            addCriterion("invoice_state between", value1, value2, "invoiceState");
            return (Criteria) this;
        }

        public Criteria andInvoiceStateNotBetween(Byte value1, Byte value2) {
            addCriterion("invoice_state not between", value1, value2, "invoiceState");
            return (Criteria) this;
        }

        public Criteria andInvoiceNoIsNull() {
            addCriterion("invoice_no is null");
            return (Criteria) this;
        }

        public Criteria andInvoiceNoIsNotNull() {
            addCriterion("invoice_no is not null");
            return (Criteria) this;
        }

        public Criteria andInvoiceNoEqualTo(Long value) {
            addCriterion("invoice_no =", value, "invoiceNo");
            return (Criteria) this;
        }

        public Criteria andInvoiceNoNotEqualTo(Long value) {
            addCriterion("invoice_no <>", value, "invoiceNo");
            return (Criteria) this;
        }

        public Criteria andInvoiceNoGreaterThan(Long value) {
            addCriterion("invoice_no >", value, "invoiceNo");
            return (Criteria) this;
        }

        public Criteria andInvoiceNoGreaterThanOrEqualTo(Long value) {
            addCriterion("invoice_no >=", value, "invoiceNo");
            return (Criteria) this;
        }

        public Criteria andInvoiceNoLessThan(Long value) {
            addCriterion("invoice_no <", value, "invoiceNo");
            return (Criteria) this;
        }

        public Criteria andInvoiceNoLessThanOrEqualTo(Long value) {
            addCriterion("invoice_no <=", value, "invoiceNo");
            return (Criteria) this;
        }

        public Criteria andInvoiceNoIn(List<Long> values) {
            addCriterion("invoice_no in", values, "invoiceNo");
            return (Criteria) this;
        }

        public Criteria andInvoiceNoNotIn(List<Long> values) {
            addCriterion("invoice_no not in", values, "invoiceNo");
            return (Criteria) this;
        }

        public Criteria andInvoiceNoBetween(Long value1, Long value2) {
            addCriterion("invoice_no between", value1, value2, "invoiceNo");
            return (Criteria) this;
        }

        public Criteria andInvoiceNoNotBetween(Long value1, Long value2) {
            addCriterion("invoice_no not between", value1, value2, "invoiceNo");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria implements Serializable {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion implements Serializable {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}